LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

ifdef OPENCV_ANDROID_SDK
  ifneq ("","$(wildcard $(OPENCV_ANDROID_SDK)/OpenCV.mk)")
    include ${OPENCV_ANDROID_SDK}/OpenCV.mk
  else
    include ${OPENCV_ANDROID_SDK}/sdk/native/jni/OpenCV.mk
  endif
else
  include /Users/xyb/Desktop/Camera/OpenCV-android-sdk/sdk/native/jni/OpenCV.mk
endif

LOCAL_MODULE    := mixed_sample
LOCAL_SRC_FILES := DetectCls.cpp DetectCls.h getCanmera.cpp ModelDetectData.h  SquareDetect_API.cpp  SquareDetect_API.h UHY_LinearSVM.h UHY_LinearSVM.cpp UHY_TimeCnt.h ScanColor.cpp ScanColor.h ColorObtain.h ColorObtain.cpp LightLevel.cpp
LOCAL_LDLIBS +=  -llog -ldl

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_MODULE    := JniOp
LOCAL_SRC_FILES := com_uhylab_uhuvinetest_qrcamera_activity_CreateBitmapThread.h JniOp.cpp Color.cpp Color.h Algorithm.cpp Algorithm.h
LOCAL_LDLIBS +=  -llog -ldl


include $(BUILD_SHARED_LIBRARY)
